//
//  ILLinkStringUtil.h
//  IMILabKit
//
//  Created by OrrHsiao on 2022/7/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface ILLinkStringUtil : NSObject

//十六进制转换为普通字符串的。
+ (NSString *)hexString2String:(NSString *)hexString;

//普通字符串转换为十六进制
+ (NSString *)string2HexString:(NSString *)string;

/// 十六进制字符串转data
+ (NSData *)hexString2Data:(NSString *)str;

/// data数据进行SHA256加密
+ (NSString *)getSHA256fromData:(NSData *)data;

/// json字符串转dic
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

@end

NS_ASSUME_NONNULL_END
